#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Time       :   14:22
# Author     : Y4
# Site       : 
# File       : 08 字典-4种遍历.py
# Software   : PyCharm

'''
遍历key
遍历value
遍历item
遍历key-value
'''

heros = {'及时雨': '宋江', '玉麒麟': '卢俊义', '花和尚': '鲁智深', '母夜叉': '孙二娘'}

for i in heros.keys():
    print(i)

print("*"*50)

for i in heros.values():
    print(i)

print("*"*50)

for i in heros.items():
    print(i)

print("*" * 50)

for key,value in heros.items():
    print(f'{key}->{value}')